| Value | Color |
|---|---|
| \e[0;30m | Black |
| \e[0;31m | Red |
| \e[0;32m | Green |
| \e[0;33m | Yellow |
| \e[0;34m | Blue |
| \e[0;35m | Purple |
Discover gists
| import json | |
| from aqt import gui_hooks | |
| from aqt.editor import Editor, EditorWebView | |
| from aqt.qt import QMimeData | |
| from anki.hooks import wrap | |
| # O formato HTML exato que você solicitou. | |
| # Usamos {filename} como uma variável para o arquivo copiado para o Anki. | |
| VIDEO_HTML_TEMPLATE = '<video id="aaa1" class="video-js anki-video" controls="true" preload="auto" style="max-width: 300px; max-height: 400px;"> <source src="{filename}" type="video/webm"></video>' |
| # Revisor Interativo Anual com Cores e Histórico | |
| from aqt import mw, gui_hooks | |
| from aqt.utils import showInfo | |
| import time, datetime | |
| def render_yearly_heatmap(deck_browser, content): | |
| if not mw.col: return | |
| hoje = datetime.date.today() | |
| if not hasattr(mw, 'hm_year'): mw.hm_year = hoje.year |
| #EXTM3U | |
| #EXTVLCOPT:network-caching=5000 | |
| #EXTVLCOPT:http-reconnect=true | |
| #EXTVLCOPT:clock-synchro=0 | |
| #EXTVLCOPT:clock-jitter=500 | |
| #EXTINF:-1 tvg-logo="http://picon.tivi-ott.net:25461/picon/TURKEY/TRT1.png" group-title="┃TR┃ ULUSAL",┃TR┃ TRT 1 8K | |
| http://line.tivi-one.net:80/play/live.php?mac=00:1A:79:B4:54:0F&stream=196699&extension=ts&play_token=vmAan78Qyz | |
| #EXTINF:-1 tvg-logo="http://picon.tivi-ott.net:25461/picon/TURKEY/Atv.png" group-title="┃TR┃ ULUSAL",┃TR┃ ATV 8K |
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
| name | anti-slop-typescript |
|---|---|
| description | Simplify TypeScript code by removing defensive over-engineering, fake type safety, unnecessary helpers, redundant runtime checks, and abstraction noise. |
Apply these rules whenever modifying TypeScript or JavaScript code.
The goal is simple, readable, strongly typed code that trusts the type system and validates only at real boundaries.
A comprehensive guide to building fullscreen web games and PWAs on iPhone, covering safe area insets, Dynamic Island handling, canvas sizing, and the many undocumented gotchas that will waste your time if you don't know about them.
Building a fullscreen web game for iPhone remains one of the most technically frustrating challenges in web development. The core difficulty stems from Apple's layered physical constraints — the Dynamic Island, notch, home indicator, rounded corners — combined with iOS Safari's incomplete web standards support (no Fullscreen API, no orientation lock) and persistent WebKit bugs. This guide covers the foundational patterns, exact pixel values, critical gotchas, and hard-won workarounds.
| from Crypto.Cipher import ARC4 | |
| from hashlib import sha1, md5 | |
| from random import randint | |
| from ecutils.core import Point, EllipticCurve | |
| from sys import argv | |
| KCHARS = "BCDFGHJKMPQRTVWXY2346789" | |
| SPK_ECKEY = { | |
| "a": 1, |